var student = require("./user_model").student;

var save = (req, res, tch) => {

    var student = new student({
        name: req.body.name,
        studentNo: req.body.stNumber,
        classNo: req.body.classNo,
        password: req.body.password
    });
    student.save((err, resin) => {
        if (err) {
            res.send(0);
        } else {

        }
    });
};

module.exports = {
    save: save
};
